
class http{
  static baseUrl= "http://47.108.197.28:"
  static request(url){
    return new Promise((resolve,reject)=>{
      wx.request({
        url: this.baseUrl+url,
        method:"GET",
        success:(res)=>{
          resolve(res)
        },
        fail:(err)=>{
          reject(err)
        }
      })
    })
  }
}
module.exports = http;